package example2;

import org.auditlogger.api.EventType;
import org.auditlogger.api.LogRecord;

public class AppLogRecord extends LogRecord {

	/*public AppLogRecord(String message) {
		super(message);
	}*/
	
	public AppLogRecord(EventType event, String message) {
		super(event, message);
	}
	
	private static final String AFFECTED_SUBSYSTEM = "AFFECTED_SUBSYSTEM";
	private static final String CLIENT_IP = "CLIENT_IP";
	
	public String getAffectedSubsystem() {
		// return affectedSubsystem;
		return getEntity(AFFECTED_SUBSYSTEM);
	}

	public void setAffectedSubsystem(String affectedSubsystem) {
		addEntity(AFFECTED_SUBSYSTEM, affectedSubsystem);
	}

	public String getClientIP() {
		return getEntity(CLIENT_IP);
	}

	public void setClientIP(String clientIP) {
		addEntity(CLIENT_IP, clientIP);
	} 
}
